<!DOCTYPE HTML>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Valtuutuspyynt&ouml;</title>
    <link rel="StyleSheet" href="/auth/style.css"/> 
  </head>
  <body>
    <h1>
      #{clientName} pyyt&auml;&auml; seuraavia valtuutuksia:
    </h1>
  
    <form action="${target}" method="get">
      <#if requestingScopes?seq_contains("basicInfo")>
		    <div class="permission">
		      <div class="permissionImage">
		         <img src="/auth/gfx/basicinfo.png"/>
		      </div>
		      <div class="permissionTitle">
		        Perustiedot
		      </div>
		      <div class="permissionDescription">
		        P&auml;&auml;sy perustietoihini, kuten nimi, jne.
		      </div>
		    </div>
		    <input type="hidden" name="scope" value="basicInfo"/>
		  </#if>
		  
	    <#if requestingScopes?seq_contains("email")>
		    <div class="permission">
		      <div class="permissionImage">
		         <img src="/auth/gfx/email.png"/>
		      </div>
		      <div class="permissionTitle">
		        S&auml;hk&ouml;posti
		      </div>
		      <div class="permissionDescription">
		        L&auml;hett&auml;&auml; minulle s&auml;hk&ouml;postia
		      </div>
		    </div>
        <input type="hidden" name="scope" value="email"/>
	    </#if>
	    
	    <#if requestingScopes?seq_contains("inventory")>
		    <div class="permission">
		      <div class="permissionImage">
		         <img src="/auth/gfx/inventory.png"/>
		      </div>
		      <div class="permissionTitle">
		        Tavaraluettelo
		      </div>
		      <div class="permissionDescription">
		        P&auml;&auml;sy tavaraluettelooni.
		      </div>
		    </div>
        <input type="hidden" name="scope" value="inventory"/>
	    </#if>
	    
	    <#if requestingScopes?seq_contains("stashedItems")>
		    <div class="permission">
		      <div class="permissionImage">
		         <img src="/auth/gfx/stasheditems.png"/>
		      </div>
		      <div class="permissionTitle">
		        K&auml;tketyt tavarat
		      </div>
		      <div class="permissionDescription">
		        P&auml;&auml;sy k&auml;tkettyihin tavaroihini
		      </div>
		    </div>
        <input type="hidden" name="scope" value="stashedItems"/>
	    </#if>
	    
      <#if requestingScopes?seq_contains("friends")>
		    <div class="permission">
		      <div class="permissionImage">
		         <img src="/auth/gfx/friends.png"/>
		      </div>
		      <div class="permissionTitle">
		        Kaverit
		      </div>
		      <div class="permissionDescription">
		        P&auml;&auml;sy kaveritietoihini.
		      </div>
		    </div>
        <input type="hidden" name="scope" value="friends"/>
      </#if>
      
      <input type="hidden" name="action" value="Accept"/>
      <input type="submit" value="Hyv&auml;ksy" />
    </form>
    
  </body>
</html>